/* 整体容器 */
.create-paper-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.create-header {
    padding: 12px 16px;
    flex-shrink: 0;
}

/* 内容区样式 */
.create-content {
    flex: 1;
    overflow: hidden;
    padding: 16px;
}

.content-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    /* border: 1px solid #ebeef5; */
}

.form-title {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 10px;
}

/* 底样式 */
.create-footer {
    padding: 12px 16px;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.left-content {
    display: flex;
    align-items: center;
}

.right-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-label {
    font-size: 13px;
    color: #606266;
}

.score-value {
    font-size: 14px;
    font-weight: 500;
}

.total-score {
    color: #409EFF;
}

.passing-rate {
    color: #67C23A;
}

:deep(.el-input-number.el-input-number--small) {
    width: 100px;
}

.manual-questions {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    min-height: 0;
}

.selected-questions-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.questions-list {
    background-color: #fff;
    border-radius: 4px;
}

.score-statistics {
    flex-shrink: 0;
    padding: 16px;
    border-top: 1px solid #ebeef5;
    background-color: #fff;
    margin-top: auto;
}

:deep(.el-table) {
    height: calc(100% - 16px);
}

:deep(.el-table__body-wrapper) {
    overflow-y: auto;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    margin: 0;
    font-size: 18px;
    color: #303133;
}

.drawer-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.question-packages {
    flex-shrink: 0;
    padding: 16px;
    border-bottom: 1px solid #ebeef5;
}

.questions-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px;
}

.section-title {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.table-container {
    flex: 1;
    overflow: hidden;
}

:deep(.el-table) {
    height: 100%;
}

:deep(.el-table__body-wrapper) {
    overflow-y: auto;
}

:deep(.el-empty) {
    padding:  0;
}

:deep(.el-drawer__header) {
    margin-bottom: 0;
    padding: 16px 20px;
    border-bottom: 1px solid #dcdfe6;
}

:deep(.el-drawer__body) {
    padding: 0;
}

.questions-list {
    background-color: #fff;
    border-radius: 4px;
}

.total-score {
    text-align: right;
    font-size: 14px;
    color: #606266;
    font-weight: bold;
}

:deep(.el-table) {
    margin-top: 16px;
}

:deep(.el-table th) {
    background-color: #f5f7fa;
    color: #606266;
    font-weight: bold;
}

:deep(.el-table__row) {
    cursor: pointer;
}

:deep(.el-table__row:hover) {
    background-color: #f5f7fa;
}

:deep(.el-tag) {
    border-radius: 2px;
}

.package-card {
    margin: 0 16px 16px 0; /* 保持右边和下边的间距 */
    cursor: pointer;
    transition: all 0.3s;
    width: 240px; /* 减小卡片宽度，从 300px 改为 240px */
    border: 1px solid #e4e7ed;
}

.package-card:hover {
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.package-card.is-active {
    border-color: #409EFF;
    box-shadow: 0 0 8px rgba(64, 158, 255, 0.3);
}

.package-info {
    display: flex;
    align-items: flex-start;
    gap: 12px; /* 减小内部间距，从 16px 改为 12px */
    padding: 12px; /* 减小内边距，从 16px 改为 12px */
}

.package-icon {
    flex-shrink: 0;
    width: 32px; /* 减小图标容器大小，从 40px 改为 32px */
    height: 32px;
    border-radius: 6px; /* 适当减小角 */
    background-color: #ecf5ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-icon .el-icon {
    font-size: 18px; /* 减小图标大小，从 24px 改为 18px */
}

.package-name {
    margin: 0 0 8px 0; /* 减小下边距，从 12px 改为 8px */
    font-size: 14px; /* 小字体大小，从 15px 改为 14px */
    color: #303133;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.package-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question-count {
    font-size: 13px;
    color: #606266;
    display: flex;
    align-items: center;
    gap: 4px;
}

.question-count .el-icon {
    font-size: 14px;
}

.selected-questions-summary {
    /* margin-top: 20px; */
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.score-statistics {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-row {
    display: flex;
    justify-content: flex-start;
    gap: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    font-size: 14px;
    color: #606266;
    min-width: 70px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
}

.total-score {
    color: #409EFF;
}

.passing-rate {
    color: #67C23A;
}

.passing-score :deep(.el-input-number) {
    width: 120px;
}

/* 确保输入框样式与整体设计协调 */
:deep(.el-input-number.el-input-number--small) {
    line-height: 34px;
}

:deep(.el-input-number__decrease),
:deep(.el-input-number__increase) {
    border-color: #dcdfe6;
}

:deep(.el-form-item__label)
{
    justify-content: start;
}

/* 添加级联选择器的样式 */
:deep(.el-cascader) {
    width: 100%;
    max-width: 400px;
}

.add-question-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* 调整按钮大小 */
:deep(.el-button--small) {
    padding: 8px 16px;
    font-size: 13px;
}

:deep(.el-button .el-icon) {
    margin-right: 4px;
}

/* 修改关试题页的样式 */
.manual-questions {
    /* margin-top: 16px; */
}

.selected-questions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.questions-list {
    background-color: #fff;
    border-radius: 4px;
}

/* 调整表格样式 */
:deep(.el-table__row) {
    height: 32px;
}

:deep(.el-table) td.el-table__cell {
    padding: 4px 0;
}

:deep(.el-table__header) th.el-table__cell {
    padding: 4px 0;
    height: 32px;
}

/* 分数统计区域样式 */
.score-statistics {
    background-color: #fff;
    padding: 16px;
    border-radius: 4px;
    border: 1px solid #ebeef5;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    color: #606266;
    font-size: 13px;
}

.stat-value {
    color: #303133;
    font-size: 14px;
    font-weight: 500;
}

.total-score {
    color: #409EFF;
}

.passing-rate {
    color: #67C23A;
}

/* 调整表单容器样式 */
.form-container {
    height: 100%;
    display: flex;
    flex-direction: column;

}

/* 调整内容包装器样式 */
.content-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #ebeef5;
}

/* 确保表格区域可以滚动 */
.questions-list {
    flex: 1;
    overflow: hidden;
}

:deep(.el-table__body-wrapper) {
    overflow-y: auto;
}

/* 确保所有表单项标签对齐 */
:deep(.el-form-item__label) {
    display: flex;
    align-items: center;
}

:deep(.el-form-item__label::before) {
    margin-right: 4px;
}

/* 修改试题包相关样式 */
.packages-container {
    position: relative;
    width: 100%;
    padding: 0 40px; /* 为滚动按钮留出空间 */
}

.packages-wrapper {
    width: 100%;
    overflow-x: hidden;
}

.packages-row {
    display: flex;
    flex-wrap: nowrap; /* 防止换行 */
    gap: 16px;
    padding: 8px 0;
}

.package-item {
    flex: 0 0 240px; /* 固定宽度，不伸缩 */
}

.package-card {
    width: 100%;
    transition: all 0.3s;
}

.package-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
}

.package-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: #ecf5ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-content {
    flex: 1;
    min-width: 0;
}

.package-name {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #303133;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.package-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question-count {
    font-size: 12px;
    color: #606266;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 添加滚动按钮样式 */
.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s;
}

.scroll-button:hover {
    background-color: #f5f7fa;
}

.scroll-button.left {
    left: 0;
}

.scroll-button.right {
    right: 0;
}
